public class Singleton {
    private static Singleton instance=null;
    private Singleton(){};
    private static Singleton getInstance(){
        if(instance==null){
            Singleton instance=new Singleton();
        }
        return instance;
    }
}
